发表新闻标题设置颜色,和加粗,怎么做的
asp.net
发表新闻标题设置颜色,和加粗,怎么做的
类似
[解决办法]
css设置啊
[解决办法]
将css 动态输出就好了。。。
[解决办法]
这个你还不如把标题直接写在编辑器里面设置好
[解决办法]
input{font-weight:700;color:#f00}
[解决办法]
这是通过JS控制样式 显示的
当你只选择时候 JS就给input里面的值
加上样式 当你去掉 JS就去掉该样式
测试代码
<html><style>.font{font-weight:700;}</style><script>function Test(){if(document.getElementById("CID").value == "True"){document.getElementById("TextValue").className="font";}else{document.getElementById("TextValue").className="";}} window.onload = function() {Test();}</script><body><input id="TextValue" type="text" /><select id="CID" onchange="Test();"><option Value="True">加粗</option><option Value="False">不加粗</option></select></body></html>
[解决办法]