摘要:
样式部分: <style> *{ margin: 0; padding: 0; } a{ text-decoration: none; color: #666; } ul li{ display: inline-block; height: 20px; width: 60px; } ul li a{ 阅读全文
posted @ 2021-11-07 20:52
于凡芮
阅读(74)
评论(0)
推荐(0)
摘要:
样式内容: 在父元素和子元素上添加定位 <style> *{ margin: 0; padding: 0; } body{ position: relative; } ul{ width: 1000px; min-width: 600px; margin: 0 auto; list-style: n 阅读全文
posted @ 2021-11-07 20:48
于凡芮
阅读(32)
评论(0)
推荐(0)
摘要:
样式: <style> body{ position: relative;父元素相对定位 } div{ width: 200px; height: 200px; background-color: coral; } span{ position: absolute;子元素绝对定位 top: 10px 阅读全文
posted @ 2021-11-07 20:16
于凡芮
阅读(26)
评论(0)
推荐(0)
摘要:
<script> window.onload = function(){ 获取元素方式: // document.getElementById(); // document.getElementsByClassName(); // document.getElementsByName(); // d 阅读全文
posted @ 2021-11-07 20:10
于凡芮
阅读(24)
评论(0)
推荐(0)

浙公网安备 33010602011771号