本教程操作环境:windows7系统、html5版,DELL G3电脑,该方法适用于所有品牌电脑。
border在html中的意思:
border
属性在一个声明中设置所有边框属性。
语法:
Object.style.border=borderWidth borderStyle borderColor
登录后复制
实例
本例改变元素的边框:
<html>
<head>
<style type="text/css">
p
{
border: thin dotted #FF0000
}
</style>
<script type="text/javascript">
function changeBorder()
{
document.getElementById("p1").style.border="thick solid #0000FF";
}
</script>
</head>
<body>
<input type="button" onclick="changeBorder()"
value="Change border" />
<p id="p1">This is a paragraph</p>
</body>
</html>
登录后复制
以上就是border在html中是什么意思的详细内容,更多请关注靠谱客其它相关文章!
最后
以上就是害羞西装最近收集整理的关于border在html中是什么意思的全部内容,更多相关border在html中是什么意思内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复